/*
 * Toolset.h
 *
 *  Created on: Mar 24, 2011
 *      Author: hxu
 */

#ifndef TOOLSET_H_
#define TOOLSET_H_
#include<string>
#include<fstream>
#include<sstream>

#define _(x) <<"# "<<#x<<": "<<x<<endl // #x and x are the name and value of variables

namespace Txuh{

int str2int(const std::string & str1);
double str2double(const std::string & str1);
int round(const double& num); // remove 4, keep 5
int get_manh_dist(const int x1, const int y1, const int x2, const int y2); // get manhattan distance between two points

}

#endif /* TOOLSET_H_ */
